import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/ceping",
  },
  {
    path: "/ceping",
    component: ()=>import("../components/first/ceping")
  },
  {
    path: "/reply",
    component: ()=>import("../components/first/huifu")
  },
  {
    path: "/wenti",
    component: ()=>import("../components/first/wenti")
  },
  {
    path:"/zhishi",
    component: ()=>import("../components/first/zhishi")
  },
  {
    path:"/FM",
    component: ()=>import("../components/first/FM")
  },
  {
    path:"/gongyi",
    component: ()=>import("../components/first/gongyi")
  },
  {
    path:"/article",
    component: ()=>import("../components/first/article")
  },
  {
    path:"/cuiyunfan/courseManage",
    component:()=>import("../components/cuiyunfan/CourseManage"),
  },
  {
    path:"/cuiyunfan/courseDetail",
    component:()=>import("../components/cuiyunfan/CourseDetail"),
  },
  {
    path:"/cuiyunfan/courseEvaluate",
    component:()=>import("../components/cuiyunfan/CourseEvaluate"),
  },
  {
    path:"/zhangdongsheng/userManage",
    component:()=>import("@/components/zhangdongsheng/UserManage"),
  },
  {
    path:"/zhangdongsheng/companyManage",
    component:()=>import("@/components/zhangdongsheng/CompanyManage")
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
